package com.niiwoo.civet.trade.dao.mapper;

import com.niiwoo.civet.trade.dao.entity.ProjectWaitPublish;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ProjectWaitPublishMapperExt extends  ProjectWaitPublishMapper{
    /**
     * 根据贷款类型查询下一个要发布的标的
     * @param loanTypeList
     * @return
     */
    ProjectWaitPublish selectOneToPublish(@Param("loanTypeList") List<Byte> loanTypeList);

    /**
     * 根据贷款类型查询待发布的标的数量
     * @param loanTypeList
     * @return
     */
    Integer selectCountByLoanTypeList(@Param("loanTypeList") List<Byte> loanTypeList);

    /**
     * 根据贷款类型查询待发布的标的
     * @param loanTypeList
     * @return
     */
    List<ProjectWaitPublish> selectByLoanTypeList(@Param("loanTypeList") List<Byte> loanTypeList);
}